package com.ben.chatroom.common.cocurrent;

/**
 * @author huangyijun
 */
public interface CallbackTask<T> {

  T execute() throws Exception;

  void onBack(T task);

  void onException(Throwable e);

}
